package pl.koziolekweb.testsonline.model;

import java.io.Serializable;
import java.util.Collection;
import java.util.LinkedList;

public class Test implements Serializable {

	private static final long serialVersionUID = -8055543757255845965L;

	private Long id;

	private Collection<Question> questions = new LinkedList<Question>();

	private String description;

	public boolean addQuestion(Question question) {
		return this.questions.add(question);
	}

	public boolean removeQuestion(Question question) {
		return this.questions.remove(question);
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Collection<Question> getQuestions() {
		return questions;
	}

	public void setQuestions(Collection<Question> questions) {
		this.questions = questions;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Test() {
	}

}
